package com.hyt.it.ogt.ks.enums.log;

import lombok.Getter;

/**
 * @author wuyingge
 * @version 1.0.0
 * @ClassName OtherLogType.java
 * @Description 消息记录
 * @createTime 2022年11月25日 09:56:00
 */
@Getter
public enum OtherLogType {

    EXAM_MESSAGE(501, "考中发消息"),
    EXAM_AUDIO(502, "语音互动");

    private Integer code;
    private String msg;

    OtherLogType(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static String getMsg(Integer code) {
        for (OtherLogType value : OtherLogType.values()) {
            if(value.getCode().equals(code)) {
                return value.getMsg();
            }
        }
        return null;
    }
}
